import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

import store from 'store'
Vue.prototype.$store = store;

//权限跳转
<<<<<<< HEAD
Vue.prototype.navigateTo = (options)=>{
	if( !store.state.user.loginStatus ){
		setTimeout(()=>{
		uni.showToast({
			title:"请先登录",
			icon:"error"
		})
		})
		return	uni.navigateTo({
				url:"/pages/login/login"
			})
=======
Vue.prototype.navigateTo = ( options ) => {
	if ( !store.state.user.loginStatus ) {
		uni.showToast( {
			title: "请先登录",
			icon: "none"
		} )
		return uni.navigateTo( {
			url: "/pages/login/login"
		} )
>>>>>>> 3805ca697129940e60b69c3c699dd043acec9e14
	}
	uni.redirectTo( options )
}

App.mpType = 'app'

const app = new Vue( {
	store,
	...App
} )
app.$mount()
